package com.kmair.caiwu.attendance.dao;

import com.kmair.caiwu.attendance.pojo.VacationUsedRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VacationUsedRecordMapper {
    int deleteByPrimaryKey(Integer tId);

    int insert(VacationUsedRecord record);

    int insertSelective(VacationUsedRecord record);

    VacationUsedRecord selectByPrimaryKey(Integer tId);

    int updateByPrimaryKeySelective(VacationUsedRecord record);

    int updateByPrimaryKey(VacationUsedRecord record);

    List<VacationUsedRecord> selectSelectiveByGroup(@Param("uId") String uId, @Param("pYear") Integer pYear);

    void sumVaction();
}